from . import router
from models.category import Category
from utils.result import Result


@router.get("/categories")
async def read_item():
    result = Category.all()
    print(result)
    return Result.ok(result)
